Definition

probability of getting kk successes in nn independent trials each with same rate pp

probability mass function

The probability mass function is given by

f(k,n,p)=Pr[X=k]=(nk)pk(1p)nkf(k,n,p) = \Pr[X=k] = {n \choose k} p^k (1-p)^{n-k}

where binomial coefficient for k=0,1,2,...,nk=0,1,2,...,n is given by

(nk)=n!k!(nk)!{n \choose k} = \frac{n!}{k! (n-k)!}

Notes


References

  1. https://en.wikipedia.org/wiki/Binomial_distribution